Leadtools Send comments on this topic. | Back to Introduction - All Topics | Help Version 15.3.5
Item Property
See Also 
Leadtools Namespace > Generic RasterCollection Class : Item Property




index
The zero-based index of the element to get or set.
Gets and sets the item at the specified index from within the collection.

Syntax

Visual Basic (Declaration) 
Public Overridable Default Property Item( _
   ByVal index As Integer _
) As T
Visual Basic (Usage)Copy Code
Dim instance As RasterCollection(Of T)
Dim index As Integer
Dim value As T
 
instance.Item(index) = value
 
value = instance.Item(index)
C# 
public virtual T this[ 
   int index
]; {get; set;}
Managed Extensions for C++ 
public: __property virtual T get_Item( 
   int index
);
public: __property virtual void set_Item( 
   int index,
   T value
);
C++/CLI 
public:
virtual property T default [int] {
   T get(int index);
   void set (int index, T value);
}

Parameters

index
The zero-based index of the element to get or set.

Return Value

The item at the specified index.

Example

For an example, refer to Generic RasterCollection.

Requirements

Target Platforms: Microsoft .NET Framework 2.0, Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family

See Also